<?php
function htmlspec($src) {
	return htmlspecialchars($src, ENT_COMPAT, 'UTF-8');
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADMIN Register - nirvana 0.8</title>
<link rel="shortcut icon" href="<?php echo(base_url()); ?>img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="<?php echo(base_url()); ?>css/admin.css" />
</head>
<body id="pgReg">
<div id="wrapper">
	<!-- header -->
	<?php include('common_header.php'); ?>
	<!-- /header -->
	
	<div id="koerper">
		<div id="main">
			<fieldset id="reg">
				<legend>New Blogger Register</legend>
				<?php if($has_error) { ?>
				<div id="errorMsg"><?php echo($error_msg); ?></div>
				<?php } ?>
				<form id="frmReg" name="frmReg" action="register" method="post">
					<label for="txtUserName">User-Name:</label>
					<input type="text" id="txtUserName" name="txtUserName" class="textBox" size="16" maxlength="16" />
					<label for="txtPassword">Password:</label>
					<input type="password" id="txtPassword" name="txtPassword" class="textBox" size="16" maxlength="32" />
					<label for="txtPwdRep">Password-Repeat:</label>
					<input type="password" id="txtPwdRep" name="txtPwdRep" class="textBox" size="16" maxlength="32" />
					<label for="txtEMail">E-mail:</label>
					<input type="text" id="txtEMail" name="txtEMail" class="textBox" size="16" maxlength="64" />
					<label for="txtUrl">URL:</label>
					<input type="text" id="txtUrl" name="txtUrl" class="textBox" size="16" max="16" />
					<label for="txtUrl">Blog-Title:</label>
					<input type="text" id="txtBlogTitle" name="txtBlogTitle" class="textBox" size="16" max="16" />
					<input type="submit" id="btnReg" name="btnReg" class="button" value="Register" />
					<input type="hidden" id="hidIsPostBack" name="hidIsPostBack" value="ja" />
				</form>
			</fieldset>
			<?php if((!$has_error) && $show_reg_info) { ?>
			<fieldset id="regMsg">
				<legend>Register Information</legend>
				<p>欢迎加入 blog.sinzy.net！你的注册信息如下：</p>
				<p>
					* 用户名：<?php echo(htmlspec($new_blogger_info['user_name'])); ?><br />
					* 初始密码：<?php echo(htmlspec($new_blogger_info['password'])); ?><br />
					* Blog 名：<?php echo(htmlspec($new_blogger_info['blog_title'])); ?><br />
					* Blog 网址：<?php echo(base_url() . $new_blogger_info['url']); ?>
				</p>
				<p>请登录到后台，在“个人设置”区域更改密码及其他设置。</p>
				<p>最后希望 sinzy 社区能成为你的网上小家园，期待你经常来浇灌～</p>
			</fieldset>
			<?php } ?>
		</div><!-- /main -->
	</div><!-- /koeper -->
	
	<!-- footer -->
	<?php include('common_footer.php'); ?>
	<!-- /footer -->
</div><!-- /wrapper -->
</body>
</html>
